<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<h1>Login</h1>

<p>Please fill out the following form with your login credentials:</p>

<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id' => 'login-form',
	'enableClientValidation' => true,
	'htmlOptions' => array(
		'class' => 'well',
    ),
	'clientOptions' => array(
		'validateOnSubmit' => true,
	),
)); ?>
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->textFieldRow($model,'username'); ?>
	<?php echo $form->passwordFieldRow($model, 'password'); ?>
	<p class="hint">
		Hint: You may login with <tt>demo/demo</tt> or <tt>admin/admin</tt>.
	</p>
	<?php echo $form->checkboxRow($model, 'rememberMe'); ?>
	<?php echo CHtml::htmlButton('<i class="icon-ok"></i> Login', array('class'=>'btn', 'type'=>'submit')); ?>

<?php $this->endWidget(); ?>
</div><!-- form -->
